package com.spring.blog.service;

import com.spring.blog.pojo.dataobject.BlogInfo;
import com.spring.blog.pojo.request.AddRequest;
import com.spring.blog.pojo.request.UpdateRequest;
import com.spring.blog.pojo.response.BlogInfoResponse;
import org.springframework.stereotype.Service;

import java.util.List;


public interface BlogService {
    List<BlogInfoResponse> getList();

    BlogInfoResponse getBlogDetail(Integer blogId);

    boolean add(AddRequest addRequest);

    boolean update(UpdateRequest updateRequest);

    boolean delete(Integer blogId);
}
